<script type="text/javascript">
	var data = [
		<#if reportModel??&&reportModel.reportData.col.firstTitle??>
			<#list reportModel.reportData.col.title[reportModel.reportData.col.title?size-1] as title>
				<#if title_index gt 0>,</#if>['${title.name!""}',${reportModel.reportData.data[reportModel.reportData.data?size-1][title_index].value!'0'}]
			</#list>
		</#if>
	];
	$(function () {
		var param = {
			displaytitle:<#if reportModel?? && reportModel.displaytitle == true>true<#else>false</#if>,
			title:"<#if reportModel??>${reportModel.title!''}</#if>",
			neckwidth:"<#if reportModel??>${reportModel.neckwidth!'30'}%</#if>",
			neckheight:"<#if reportModel??>${reportModel.neckheight!'25'}%</#if>",
			marginright:"<#if reportModel??>${reportModel.marginright!'120'}</#if>",
			click:function(){
				loadURL("<#if reportModel??>/${orgi}/design/custom/chartproperties/${report.id!''}/${reportModel.id!''}.html</#if>","#setUp",function(){$('#format').click();});
			}
		};
		
		//var param = {click:function(){$('#format').click();}};
		createChartDisplay('#cz_<#if reportModel??>${reportModel.id}</#if>' , 'funnel' , '${report.name!""}',data , param);		
	});
</script>
<div id="cz_<#if reportModel??>${reportModel.id}</#if>" class="selectable cz_<#if reportModel??>${reportModel.id}</#if>" data-id="<#if reportModel??>${reportModel.id}</#if>"></div>
